package org.zjx.analysis.analyze.tap;


import org.zjx.command.util.ImageUtil;
import org.zjx.window.window.IWindow;

import java.awt.*;
import java.awt.image.BufferedImage;
import java.util.Collections;

public class QQFTabAnalysis extends BaseTabAnalysis {

    public QQFTabAnalysis(IWindow window) {
        super("秦琼府", window);
    }

    @Override
    public Rectangle getContentArea() {
        return ImageUtil.createRect(10, 80, 393, 364);
    }

    @Override
    protected void initResources() {

    }

    @Override
    public Rectangle closeArea() {
        return null;
    }

    @Override
    public Rectangle getOriginBounds() {
        return ImageUtil.createRect(160, 90, 638, 483);
    }

    @Override
    public Rectangle getRefImageArea() {
        return ImageUtil.createRect(218, 24, 259, 37);
    }

    @Override
    public BufferedImage getRefImage() {
        BufferedImage bufferedImage = ImageUtil.createImage("iVBORw0KGgoAAAANSUhEUgAAACkAAAAOCAYAAACyyTV4AAAERElEQVR42pVUCVNTVxTOH+sIWKu01MoOApYOAQrFQkAZsRgQbUUgbGICeZFFFkWIQpqELYABlCotEJZUFqkYkK04QCiLOPP13fOSB4GUsWfmy/vOcu/57s15T3IigMNBfOYn4HHLOJKvG0XfLXzL/jN3OqwSmYpOl9jhXgdxp6IfN4u63eYk7Kft6SQWlu0ucNrhuKFzghpGJjVgfnFdjNverSMisQEXr+mRlGFA0b3ntD5DYYLsugGJcj28gjTUNJ/rw/jkEqxTyyKcdjDGYLEuQOIRqEFylhEF3DMC20BvekULGGco5HpFniTX4YRfKb6OrEK9bgQb9h2qrW+2kKDj7IefdGD9mP2z9QEvhmyE3y3zInfipePZNzALiWeAmhfRh0+1vFIziXRCb/oTa+vbou8VqEZ4wgNc+JGhnhCe8BCfB3NgvRjohvM6SPCtEjP5jDvzDLkqMwaG54iTSO+wcsRdeYL4tCZ+jjpoUUnFc95/TIi7IiA2VYtTIdyxIo+zwyIZn3i9Qhgae+f+7+fHQnKjoAP/1zJyW+Hpr4SHXwkMJiuJZD4Ds2s5fD6gVIScr2fmFVhKYJapaMfpUEFwdkkX+v+YxdDovAinDY7OQeIdpoEsQ8e/yb/CvrlLiSxeOPOv3mqBuqafYusb20jObIZM3oQvQlQ4H3f/iPhz35XTs6DMDJ8IDXwulBMK1D2OmxREM5PntqGpdYx4zOVGKPgxYmPirNEaRrCzu0dcwk7/VTiHN7b3tGB4fP5Ic2WlMLMzb1f5WjXdIENwTBX6Xs5gd/cjgmIqKcZu1Z3ZN3dcbruQ6xFzMZceoffFjHAQR41W7xDJc8nNwnax+HJWM/yjypH2ix4rq5v8PCziTGgpITKxTqxLzzbC07eIYOgYE2bSVxB+MlAJacpDfi8d1Z4KViFK9kA8GAOzpRU71jaEA0Wn1OPLsDLiOXe7qKZRbyGRjEtSs5pQqx1AT//0J80jV/0MSemNh0Ruib7JLHy+2L7MLl5toGdobAXlT/oXC7eXUkf+QT44YsOHvY/Etfoh4SZ5LnFu7kSQ9B413X+7FuEdqtyvOZfvAkPHKNX9Nfs31PwBmKkqe0WRbM37tS0sLm8Ql8pqKe4TpjoiMpDvrVB2uhHpaBabUsO/VTZaNDG9iNdvVjA1s0zNmTUZh+H7rUoUdzZciSfGIfEws7bV/U8Nn5dn60QeLasW/lb+WazuEuMMJDK5hniwlENQlJq4rtWC7Z094iTSOrlAxSurdsjSH1HCOrEAy/gcPL5RIO/u/tx29b6i2O3iFvJNZivOx2ooNjG9hMiEStdvo0NMW7cV8al16P1tSrihAyKZeKrpGndZO2h5K4hkm0cl3kdwNEeNnPj+Ui3drsfZHBEZt5sRI6tyiblDiLQMaTe0OBNU5LInQ0R8OaRJ1aKfW9IOL9980WcHvqPpxs8FRjH+Lz9Crp15qIIlAAAAAElFTkSuQmCC");
        return ImageUtil.makeColorsTransparent(bufferedImage, Collections.singletonList(Color.WHITE));
    }
}
